* {
  padding: 0;
  margin: 0;
}
body {
  background: #ff5555;
  overflow: hidden;
  margin: 0;
  /* background-color: #000 !important; */
}
/**
* 主容器
*/
div#main {
  width: 100vw;
  height: 100vh;
}

/**
* 设置无限的动效
* 单次动效时间3s
*/
heart {
  position: absolute;
  width: 20px;
  height: 20px;
  color: #FFF;
  text-align: center;
  /* background: #e74c3c; */
  font-size: 30px;
  transform: rotate(360deg) scale(.6);
  opacity: .5;
  animation-name: opacity;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

/**
* 用伪类在heart  content即是展示的文字效果
*/
heart::before {
  position: absolute;
  content: '曹孟莹520快乐';
  width: 200px;
  height: 20px;
  /* background: #e74c3c; */
  border-radius: 50%;
  transform: translateX(-10px);
}

/**
*用伪类在heart
*/

heart::after {
  position: absolute;
  content: '';
  width: 20px;
  height: 20px;
  /* background: #e74c3c; */
  border-radius: 50%;
  transform: translateY(-10px);
}

/**
* 改变透明度
*/
@keyframes opacity {
  25%,
  75% {
      opacity: 1;
  }
  50%,
  100% {
      opacity: .5;
  }
}
